package com.xing.controller;


import com.xing.entity.vo.AuthorityUser;
import com.xing.service.SystemFunctionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;
import java.util.List;

@Controller
@RequestMapping("/main")
public class MainController {

    @Autowired
    private SystemFunctionService systemFunctionService;
    @RequestMapping("/loginOut")
    public String loginOut(HttpSession session){
        session.invalidate();
        return "login";
    }

    @RequestMapping("/gomain")
    public String goMain(){
        return "main";
    }



}
